import axios from 'axios';
import qs from 'qs';

/**
 * @Description:
 *  get 方法
 * @author chenmj
 * @date 2018/8/13
*/
export const get = (url, params, config) => axios.get((url + qs.stringify(params)), config)
  .then(res => res.data);

/**
 * @Description:
 * post方法
 * @author chenmj
 * @date 2018/8/13
*/
export const post = (url, params, config) => axios.post(url, params, config)
  .then(res => res.data);
